import { defHttp } from '/@/utils/http/axios'

interface IData {
	'id'?: string
	'wardCode': string
	'wardName': string
	'inputCode'?: string
	'hospitalCode'?: string
	'hospitalName'?: string
	'buildingNumber'?: string
	'buildingFloor'?: string
	'status'?: boolean
	'organizationId'?: string
}

enum Api {
	url = 'sensing-infos/HistorySensingsByPage',
}

export function list(params) {
	params.deviceId = params.binderId
	const [startTime, endTime] = params.StartEndTime.split(',')
	params.startTime = startTime
	params.endTime = endTime
	return defHttp.get({ url: Api.url, params })
}
